import apiClient from './http'

export const authService = {
  async login(credentials) {
    return apiClient.post('/auth/login', credentials)
  },
  
  async register(userData) {
    return apiClient.post('/users', userData)
  },
  
  async getProfile() {
    return apiClient.get('/users/profile')
  },
  
  async updateProfile(userData) {
    return apiClient.patch('/users/profile', userData)
  },
  
  async changePassword(passwordData) {
    return apiClient.post('/auth/change-password', passwordData)
  }
}